package com.jdd.dao.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jdd.dao.entity.TBuilding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdd.dao.vo.BuildingSerachVo;
import com.jdd.dao.vo.BuildingVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 楼栋单元表 Mapper 接口
 * </p>
 *
 * @author ls
 * @since 2022-09-19
 */
public interface TBuildingMapper extends BaseMapper<TBuilding> {

    List<TBuilding> selectByAreaId(@Param(value = "areaId") String areaId);

    IPage<BuildingVo> selectBuildingPage(Page<BuildingVo> page, @Param("buildingSearchVo") BuildingSerachVo buildingSearchVo,@Param("projectCodes")List<String> projectCodes);

}
